//
//  XXIncomeTaxCalculationTextCell.h
//  XingXue
//
//  Created by XingXue Team on 2023.
//  Copyright © 2023 XingXue Team. All rights reserved.
//

#import "BaseTableViewCell.h"

@class XXIncomeTaxCalculationTextCell;
@class XXIncomeTaxCalculationTextCellModel;

@protocol XXIncomeTaxCalculationTextCellDelegate <NSObject>

- (void)incomeTaxCalculationTextCell:(XXIncomeTaxCalculationTextCell *)cell textField:(UITextField *)textField;

@end

@interface XXIncomeTaxCalculationTextCell : BaseTableViewCell <UITextFieldDelegate>

@property (nonatomic,weak) id<XXIncomeTaxCalculationTextCellDelegate> delegate;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewBottom;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIView *textView;
@property (weak, nonatomic) IBOutlet UITextField *textField;//输入框
@property (weak, nonatomic) IBOutlet UILabel *lineLabel;
@property (strong, nonatomic) XXIncomeTaxCalculationTextCellModel *model;

@end


#pragma mark - Model

@interface XXIncomeTaxCalculationTextCellModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,copy) NSString *content;
@property (nonatomic,copy) NSString *tip;
@property (nonatomic,assign) NSInteger position;

+ (XXIncomeTaxCalculationTextCellModel *)ittemModelWithTitle:(NSString *)title content:(NSString *)content tip:(NSString *)tip position:(NSInteger)position;

@end
